using System;
using System.Diagnostics.CodeAnalysis;
using Bookvar.ObjectModel;
using System.Windows.Controls;

namespace BookvarWpf
{
    class WindowLogProvider : ILogProvider
    {
//        private LogWindow logWindow;

        [SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        private readonly Panel panel;

        public WindowLogProvider(Panel panel)
        {
            if (panel == null)
            {
                throw new ArgumentNullException("panel");
            }

            this.panel = panel;
        }

        public void Log(string msg)
        {
		/*
            if (logWindow == null)
            {
                logWindow = new LogWindow();
                panel.Children.Add(logWindow);
            }

            logWindow.WriteLine(msg); */
        }
    }
}
